package com.geeguo.ebuilder.client.business.system.webmodule.remote;

import com.geeguo.ebuilder.client.base.core.constants.FeignNameConstants;
import com.geeguo.ebuilder.client.business.system.webmodule.model.WebModuleRO;
import com.geeguo.ebuilder.client.business.system.webmodule.remote.fallback.WebModuleApiFallback;
import com.geeguo.ebuilder.core.common.action.ActionResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(name = FeignNameConstants.EBUILDER_OPERATION_API_NAME, fallback = WebModuleApiFallback.class, path = "/tenant/clientWebModule")
public interface WebModuleApi {

    @GetMapping("/listAll")
    ActionResult<List<WebModuleRO>> listAll();
}